<template>
	<view>
		<projectProgress :projectList="projectList" :project_id = "project_id" :proItem="proItem" 
		:authAdd = "true" @fresh="fresh"/>
	</view>
</template>

<script>
	import projectProgress from '@/components/common/projectProgress.vue'
	import {
		projectProcessList,
	} from '@/request/api.js'
	export default {
		props: {
			item: {
				type: String,
				default: ''
			}
		},
		components:{
			projectProgress,
		},
		onLoad(res){
			
			this.project_id =  res.id
			this.proItem =  JSON.parse(res.item)
			console.log(this.project_id,'res',res)
			this.getprojectProcessList()
		},
		data() {
			return {
				proItem: {},
				project_id:'',
				projectList:[]
			};
		},
		watch: {
			item(n, o) {
				console.log(n,'item000')
			},
		},
		methods: {
			async  getprojectProcessList(){
				let res = await projectProcessList({project_id:this.project_id})
				this.projectList = res.data
				// console.log(this.proData)
			},
			fresh(){
				
			  }
			}
	}
</script>

<style lang="scss">

</style>
